/* 订单详情页面样式 */

/* 订单头部 */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-header h1 {
    font-size: 24px;
    margin: 0;
}

.order-status {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: bold;
}

.order-status.unpaid {
    color: #faad14;
    background: #fffbe6;
    border: 1px solid #ffe58f;
}

.order-status.paid {
    color: #1890ff;
    background: #e6f7ff;
    border: 1px solid #91d5ff;
}

.order-status.shipped {
    color: #722ed1;
    background: #f9f0ff;
    border: 1px solid #d3adf7;
}

.order-status.completed {
    color: #52c41a;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
}

.order-status.cancelled {
    color: #ff4d4f;
    background: #fff2f0;
    border: 1px solid #ffccc7;
}

/* 订单摘要 */
.order-summary {
    background: #fafafa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.total {
    font-weight: bold;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

/* 订单商品 */
.order-items {
    margin-bottom: 20px;
}

.order-items h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 16px;
    margin: 0 0 10px 0;
}

.item-price {
    color: #f56c6c;
    font-weight: bold;
    margin-bottom: 5px;
}

.item-quantity {
    color: #666;
    margin-bottom: 5px;
}

.item-total {
    font-weight: bold;
}

/* 订单操作 */
.order-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.order-actions button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-pay {
    background: #1890ff;
    color: white;
    border: 1px solid #1890ff;
}

.btn-pay:hover {
    background: #40a9ff;
}

.btn-cancel {
    background: #ff4d4f;
    color: white;
    border: 1px solid #ff4d4f;
}

.btn-cancel:hover {
    background: #ff7875;
}

.btn-confirm {
    background: #52c41a;
    color: white;
    border: 1px solid #52c41a;
}

.btn-confirm:hover {
    background: #73d13d;
}

.btn-review {
    background: #722ed1;
    color: white;
    border: 1px solid #722ed1;
}

.btn-review:hover {
    background: #9254de;
}

.btn-remind {
    background: #faad14;
    color: white;
    border: 1px solid #faad14;
}

.btn-remind:hover {
    background: #ffc53d;
}

/* 空状态 */
.no-items {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 16px;
}